package com.example.common.constant;

import lombok.Getter;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
public class WareConstant {

    @Getter
    public enum PurchaseStatus {
        CREATED(0, "新建"),

        ASSIGNED(1, "已分配"),

        RECEIVE(2, "已领取"),

        FINISHED(3, "已完成"),

        ERROR(4, "有异常");

        PurchaseStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        private final int code;
        private final String msg;
    }

    @Getter
    public enum PurchaseDetailsStatus {
        CREATED(0, "新建"),

        ASSIGNED(1, "已分配"),

        BUYING(2, "正在采购"),

        FINISHED(3, "已完成"),

        ERROR(4, "采购失败");

        PurchaseDetailsStatus (int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        private final int code;
        private final String msg;
    }


    @Getter
    public enum StockStatus {
        LOCKED(1, "已锁定"),

        UNLOCKED(2, "已解锁"),

        DEDUCTION(3, "扣减");


        StockStatus (int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        private final int code;
        private final String msg;
    }

}
